// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitor;

#include "OracleGotoStatement.h"
#include "../../visitor/OracleASTVisitor.h"
#include "../../../../ast/SQLName.h"

OracleGotoStatement::OracleGotoStatement()
{
}

OracleGotoStatement::OracleGotoStatement(SQLName_ptr label)
{
    this->label = label;
}

// @Override
void OracleGotoStatement::accept0(OracleASTVisitor_ptr visitor)
{
    if (visitor->visit(SharedObject(OracleGotoStatement)))
    {
        acceptChild(visitor, label);
    }
    visitor->endVisit(SharedObject(OracleGotoStatement));
}

SQLName_ptr OracleGotoStatement::getLabel()
{
    return label;
}

void OracleGotoStatement::setLabel(SQLName_ptr label)
{
    this->label = label;
}
